<?php include("../../../header.php"); ?>
<input type="hidden" id="header_id" value="<?php echo $_GET['id']; ?>" />
<script src="purcharse_header_read.js"></script>
<div class="row">
    <div class="col-md-12">
        <!-- Home chart widget -->
        <div class="widget">
            <div class="widget-head br-lblue">
                <h3 class="pull-left"><i class="fa fa-bar-chart-o"></i> Compra</h3>

                <div class="clearfix"></div>
            </div>
            <div class="widget-body" >
                <div class="row">

                    <div class="container">

                        <table id="itemsTable" class="  table-condensed">
                            <thead>
                                <tr>
                                    <th style="width: 5%"></th>
                                    <th style="width: 10%"></th>
                                    <th style="width: 30%"></th>
                                    <th style="width: 5%"></th>
                                    <th style="width: 12%"></th>
                                    <th style="width: 8%"></th>
                                    <th style="width: 12%"></th>
                                    <th style="width: 8%"></th>
                                    <th style="width: 5%"></th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="item-row">
                                    <td></td>
                                    <th>Proveedor</th>
                                    <td>
                                        <div class="input-group">
                                            <input type="hidden" id = "supplier_id" >
                                            <input type="text" id = "supplier_name" class="form-control" readonly="readonly">
                                            <span id="btn_dialog_show_supplier" class="input-group-addon"><i class="fa fa-search blue"></i></span>
                                        </div>
                                    </td>
                                    <td></td>
                                    <th>Fecha Emision</th>
                                    <td>
                                        <input type="text" id="emission_date" class="form-control input-sm" readonly="readonly" >
                                    </td>
                                    <th>Fecha Cancelacion</th>
                                    <td>
                                        <input type="text" id="cancellation_date" class="form-control input-sm" readonly="readonly" >
                                    </td>
                                </tr>
                                <tr class="item-row">
                                    <td></td>
                                    <th>RUC</th>
                                    <td>
                                        <input type="text" id="supplier_ruc" class="form-control input-sm" readonly="readonly">
                                    </td>
                                    <td></td>
                                    <th>Serie</th>
                                    <td>
                                        <input type="text" id="serie" class="form-control input-sm" readonly="readonly" >
                                    </td>
                                    <th>Numero</th>
                                    <td>
                                        <input type="text" id="numero" class="form-control input-sm" readonly="readonly" >
                                    </td>
                                </tr>
                                <tr class="item-row">
                                    <td></td>
                                    <th>Direccion</th>
                                    <td>
                                        <input type="text" id="supplier_address" readonly="readonly" class="form-control input-sm" >
                                    </td>
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="row">
                    <div class="container">
                        <table id="detail" class="table table-striped table-condensed">

                            <thead>
                                <tr>
                                    <th style="width: 60%">Description</th>
                                    <th style="width: 5%">Qty</th>
                                    <th style="width: 15%">Price</th>
                                    <th style="width: 15%">Total</th> 
                                    <th style="width: 5%"></th>
                                </tr>
                            </thead>
                            <tbody>

                            </tbody>
                        </table>                       
                    </div>
                </div>
                <hr>
                <div class="row">
                    <div class="col-md-8">
                    </div>
                    <div class="col-md-4 text-right">
                        <table>
                            <tr>
                                <td>
                                    <h5>Sub Total:</h5>
                                </td>
                                <td>
                                    <div class="input-group"  style="padding-bottom: 5px;">
                                        <span class="input-group-addon">S/.</span>
                                        <input type="text" style="text-align:right" readonly="readonly" class="form-control input-sm" value="0.00" id="subtotal_g">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td><h5>IGV (18%):</h5></td>
                                <td>
                                    <div class="input-group"  style="padding-bottom: 5px;">
                                        <span class="input-group-addon">S/.</span>
                                        <input type="text" style="text-align:right" readonly="readonly" class="form-control input-sm" value="0.00" id="igv_g">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td><h5>Total:</h5></td>
                                <td>
                                    <div class="input-group"  style="padding-bottom: 5px;">
                                        <span class="input-group-addon">S/.</span>
                                        <input type="text" style="text-align:right" readonly="readonly" class="form-control input-sm" value="0.00" id="total_g">
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <a class="btn btn-success pull-right"  href="/erp/module/purcharse/purcharse/"> Regresar</a>
                    </div>
                </div>

            </div>					
        </div>
    </div>
</div>

<?php include("../../../footer.php"); ?>
                        